Kone
Toggle table of contents
0.0.0-experiment-2025.7.7.13
common
Platform filter
common
Switch theme
Search in API
Kone
kone.state
/
dev.lounres.kone.state
/
KoneState
Kone
State
interface
KoneState
<
out
Value
>
(
source
)
Inheritors
KoneMutableState
Members
Members & Extensions
Types
Cancellation
Link copied to clipboard
fun
interface
Cancellation
Properties
value
Link copied to clipboard
abstract
val
value
:
Value
Functions
map
Link copied to clipboard
fun
<
Value
,
Result
>
KoneState
<
Value
>
.
map
(
elementEquality
:
Equality
<
Result
>
=
defaultEquality()
,
transform
:
(
Value
)
->
Result
)
:
KoneState
<
Result
>
subscribe
Link copied to clipboard
abstract
fun
subscribe
(
observer
:
(
Value
)
->
Unit
)
:
KoneState.Cancellation
to
State
Flow
Link copied to clipboard
fun
<
Value
>
KoneState
<
Value
>
.
toStateFlow
(
)
:
StateFlow
<
Value
>